<?php 
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../controller/renewal_bill_export.php"); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <?
    $filename = $detail_list[0]['name'].'-续费服务收款通知';
    $filename .= ".xls";

//    header('Content-Type: application/vnd.ms-excel');
//    header('Content-Disposition: attachment;filename=' . $filename . '');
//    header('Cache-Control: max-age=0');
    ?>


    <link href="../asset/css/css.css" rel="stylesheet" type="text/css"/>
    <link href="../asset/css/export.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<div class="box">

    <table width="100%" class="table_head">
    <tr>
        <th colspan="4" align="center" >
            <h1>续费服务通知</h1>
        </th>
    </tr>
    <tr>
        <th colspan="4" align="left">
            尊敬的客户：
        </th>
    </tr>
    <tr height="36">
        <th colspan="1"></th>
        <th colspan="3" align="left"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您好！非常荣幸能够在项目开展期间，为您提供优质的服务，真诚合作期间。感谢您给予我们的信任与厚爱，希望我们的服务能够为您们的发展尽绵薄之力，锦上添花！</th>
    </tr>

    </table>



    <h3>续费项目</h3>
    <table class="tbl" width="100%">
        <colgroup>
            <col width="120px">
            <col width="120px">
            <col width="120px">
            <col width="120px">
        </colgroup>



<!--        <tr>-->
<!--            <td height="30" colspan="1" align="center" height="30">项目名称</td>-->
<!--            <td height="30" colspan="3">--><?// echo $detail_list[0]['name'] ?><!--</td>-->
<!--        </tr>-->
        <tr>
            <td height="30" colspan="1" align="center" height="30">项目内容</td>
            <td height="30" colspan="3">
                <? foreach ($detail_list as $key => $val) {
                    if (count($detail_list) - 1 != $key) {
                        echo $val['type'] . '、';
                    } else {
                        echo $val['type'];
                    }

                } ?>


            </td>
        </tr>
        <tr>
            <td height="30" colspan="1" align="center" rowspan="<? echo count($detail_list) ?>">费用明细</td>
            <td height="30" colspan="3">
                1. <? echo $detail_list[0]['name'].'-'.$detail_list[0]['type'] ?>， <b>款项金额为人民币：</b> <? echo $detail_list[0]['sum'] ?> 元；<br/>
                   <b>周期:</b> <? echo
                       date('Y年m月d日', strtotime($detail_list[0]['next_enddate'])).' <b>至</b> '.
                       date('Y年m月d日',strtotime('+1 year,-1 day',strtotime($detail_list[0]['next_enddate'])))?>
                <?if($_REQUEST['remark'][0]){?><span><br/><b>备注：</b><?echo $_REQUEST['remark'][0]?></span><?}?>

            </td>
        </tr>

        <?
        $total_price = 0;
        foreach ($detail_list as $key => $val) {
            $total_price += $val['sum'];
            if ($key > 0) {
                ?>
                <tr>
                    <td height="30" colspan="3"><? echo $key + 1 ?>. <? echo $val['name'].'-'.$val['type'] ?>，
                        <b>款项金额为人民币： </b><? echo $val['sum'] ?> 元；<br/>
                        <b>周期:</b> <? echo
                            date('Y年m月d日', strtotime($val['next_enddate'])).' <b>至</b> '.
                            date('Y年m月d日',strtotime('+1 year,-1 day',strtotime($val['next_enddate'])))?>
                        <?if($_REQUEST['remark'][$key]){?><span><br/><b>备注：</b><?echo $_REQUEST['remark'][$key]?></span><?}?>

                    </td>
                </tr>
            <? }
        } ?>


        <tr>
            <td height="30" colspan="1" align="center" height="30">项目总价</td>
            <td height="30" colspan="3">
                总价：￥ <? echo $total_price; ?>元；
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                大写： <? echo number2chinese($total_price,0); ?>
            </td>
        </tr>
    </table>



    <h3>付款方式</h3>

    <table class="tbl payment" width="100%">

        <colgroup>

            <col width="85px">

            <col width="90px">

            <col  >

            <col  >

            <col width="100px" >

        </colgroup>



        <tr>

            <td colspan="1" align="center"  >付款方式1</td>

            <td colspan="1" align="center" >银行账户</td>

            <td colspan="3" >

                <b>开户银行:</b>江门融和农村商业银行股份有限公司恩平支行<br/>

                <b>银行账户:</b>8002 00000 1655 5616<br/>

                <b>开户名称:</b>恩平市圆点设计工作室

            </td>

        </tr>



        <tr>

            <td colspan="1" align="center"  >付款方式2</td>

            <td colspan="1" align="center" >银行账户</td>

            <td colspan="3" >

                <b>开户银行:</b>中国工商银行恩平支行<br/>

                <b>银行账户:</b>6212 2620 1200 1913 873<br/>

                <b>开户名称:</b>吴俊源

            </td>

        </tr>



        <tr>

            <td colspan="1" align="center"  >付款方式3</td>

            <td colspan="1" align="center" >微信帐号</td>

            <td colspan="2" >

                <b>账号:</b>phonix-ltd <br/>

                <b>绑定手机:</b>13535350765<br/>

                <b>用户实名:</b>吴俊源

            </td>

            <td colspan="1" align="center" ><img  width="100px;" src="../asset/image/yuan-code-payment.jpg"></td>



        </tr>



        <tr>

            <td colspan="1" align="center"  >付款方式4</td>

            <td colspan="1" align="center" >支付宝</td>

            <td colspan="2" >

                <b>支付宝帐号:</b>13535350765<br/>

                <b>开户名称:</b>吴俊源

            </td>

            <td colspan="1" align="center" ><img  width="93px;" src="../asset/image/pay-code-alipay.jpg"></td>





        </tr>







        <tr>

            <td height="36" colspan="5">

                声明：请谨记项目款项应汇至上述银行账户，否则将视作未汇款，本司在未收取到款项前，将不提供任何服务。此价格为不含税，请知悉。

            </td>



        </tr>

    </table>



    <table class="tbl_illustrate" width="100%">

        <colgroup>

            <col width="120px">

            <col width="120px">

            <col width="120px">

            <col width="120px">

        </colgroup>

        <tr height="60">

            <td colspan="4">圆点设计工作室，是一家有责任、有态度的工作室，我们一切按照规范是为了更好的服务客户，保证项目顺利进行以及您的最大权益。请及时续费，感谢您的支持与配合。

            </td>

        </tr>



        <tr height="20">

            <td colspan="3"></td>

            <td colspan="1" align="right">圆点设计工作室</td>

        </tr>

        <tr height="20">

            <td  colspan="3"></td>

            <td  colspan="1" align="right"><? echo date("Y年m月d日"); ?></td>

        </tr>

    </table>

</div>

</body>

</html>
